home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / pine3.92 / pico / makefile.lnx < prev    next >
Makefile  |  1996-03-14  |  2KB  |  91 lines

  1. # $Id: makefile.lnx,v 1.7 1996/03/15 20:29:03 hubert Exp $
  2. #
  3. #   Michael Seibel
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: mikes@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1996 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. # Makefile for Linux of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29. #   NOTE:  We are told that it may be advantageous to add -DTERMCAP_WINS
  30. #          to STDCFLAGS if you use a Linux console.  Do the same in
  31. #          pine/makefile.lnx.
  32. #
  33.  
  34. #includes symbol for debugging
  35. DASHO=        -g
  36. #for normal build
  37. #DASHO=        -O2
  38.  
  39. STDCFLAGS=    -Dlnx -DPOSIX -DJOB_CONTROL -DMOUSE
  40. CFLAGS=         $(EXTRACFLAGS) $(DASHO) $(STDCFLAGS)
  41.  
  42. # switches for library building
  43. LIBCMD=        ar
  44. LIBARGS=    ru
  45. RANLIB=        ranlib
  46.  
  47. LIBS=        $(EXTRALIBES) -ltermcap
  48.  
  49. OFILES=        attach.o ansi.o basic.o bind.o browse.o buffer.o \
  50.         composer.o display.o file.o fileio.o line.o osdep.o \
  51.         pico.o random.o region.o search.o spell.o tcap.o \
  52.         window.o word.o
  53.  
  54. CFILES=        attach.c ansi.c basic.c bind.c browse.c buffer.c \
  55.         composer.c display.c file.c fileio.c line.c osdep.c \
  56.         pico.c random.c region.c search.c spell.c tcap.c \
  57.         window.c word.c
  58.  
  59. HFILES=        estruct.h edef.h efunc.h ebind.h pico.h
  60.  
  61.  
  62. #
  63. # dependencies for the Unix versions of pico and libpico.a
  64. #
  65. all:        pico pilot
  66.  
  67. osdep.c:    os_unix.c
  68.         rm -f osdep.c
  69.         cp os_unix.c osdep.c
  70.  
  71. osdep.h:    os_unix.h
  72.         rm -f osdep.h
  73.         cp os_unix.h osdep.h
  74.  
  75. libpico.a:    osdep.c osdep.h $(OFILES)
  76.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  77.         $(RANLIB) libpico.a
  78.  
  79. pico:        main.c libpico.a
  80.         $(CC) $(CFLAGS) main.c libpico.a $(LIBS) -o pico
  81.  
  82. pilot:        pilot.c libpico.a
  83.         $(CC) $(CFLAGS) pilot.c libpico.a $(LIBS) -o pilot
  84.  
  85. .c.o:        ; $(CC) -c $(CFLAGS) $*.c
  86.  
  87. $(OFILES):    $(HFILES)
  88.  
  89. clean:
  90.         rm -f *.a *.o *~ osdep.c osdep.h
  91.